package com.zhichat.web.dto;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.io.Serializable;

/**
 * 用户缓存数据
 */
@Data
@AllArgsConstructor
public class UserToken implements Serializable {
    @JSONField(ordinal = 1)
    private Long userId;
    @JSONField(ordinal = 2)
    private String userId2;
    @JSONField(ordinal = 3)
    private String phone;
    @JSONField(ordinal = 4)
    private String nickname;
    @JSONField(ordinal = 5)
    private Boolean isAdmin;
    @JSONField(ordinal = 6)
    private String token;
}
